package jianzhi_offer;

public class _13_链表中倒数第k个结点 {
	public ListNode FindKthToTail(ListNode head,int k) {
		ListNode run = head;
		while(run != null && k>0) {
			run = run.next;
			--k;
		}
		if(k != 0) return null;
		while(run != null) {
			run = run.next;
			head = head.next;
		}
		return head;
    }
}
